<template>
	<el-main class="bg edit_wrap comtable_e">
		<el-form ref="form" :model="form" status-icon label-width="120px" v-if="is_view()">
		<el-row class="row_ce"> 
							<el-col v-if="user_group === '管理员' || $check_field('get','player_name') || $check_field('add','player_name') || $check_field('set','player_name')" :xs="24" :sm="12" :lg="8" class="el_form_item_warp">
				<el-form-item label="球员姓名" prop="player_name">
												<el-input id="player_name" v-model="form['player_name']" placeholder="请输入球员姓名"
							  v-if="user_group === '管理员' || (form['data_information_id'] && $check_field('set','player_name')) || (!form['data_information_id'] && $check_field('add','player_name'))" :disabled="disabledObj['player_name_isDisabled']"></el-input>
					<div v-else-if="$check_field('get','player_name')">{{form['player_name']}}</div>
											</el-form-item>
			</el-col>
								<el-col v-if="user_group === '管理员' || $check_field('get','player_position') || $check_field('add','player_position') || $check_field('set','player_position')" :xs="24" :sm="12" :lg="8" class="el_form_item_warp">
				<el-form-item label="球员位置" prop="player_position">
												<el-input id="player_position" v-model="form['player_position']" placeholder="请输入球员位置"
							  v-if="user_group === '管理员' || (form['data_information_id'] && $check_field('set','player_position')) || (!form['data_information_id'] && $check_field('add','player_position'))" :disabled="disabledObj['player_position_isDisabled']"></el-input>
					<div v-else-if="$check_field('get','player_position')">{{form['player_position']}}</div>
											</el-form-item>
			</el-col>
								<el-col v-if="user_group === '管理员' || $check_field('get','player_age') || $check_field('add','player_age') || $check_field('set','player_age')" :xs="24" :sm="12" :lg="8" class="el_form_item_warp">
				<el-form-item label="球员年龄" prop="player_age">
												<el-input id="player_age" v-model="form['player_age']" placeholder="请输入球员年龄"
							  v-if="user_group === '管理员' || (form['data_information_id'] && $check_field('set','player_age')) || (!form['data_information_id'] && $check_field('add','player_age'))" :disabled="disabledObj['player_age_isDisabled']"></el-input>
					<div v-else-if="$check_field('get','player_age')">{{form['player_age']}}</div>
											</el-form-item>
			</el-col>
								<el-col v-if="user_group === '管理员' || $check_field('get','team') || $check_field('add','team') || $check_field('set','team')" :xs="24" :sm="12" :lg="8" class="el_form_item_warp">
				<el-form-item label="所在球队" prop="team">
												<el-input id="team" v-model="form['team']" placeholder="请输入所在球队"
							  v-if="user_group === '管理员' || (form['data_information_id'] && $check_field('set','team')) || (!form['data_information_id'] && $check_field('add','team'))" :disabled="disabledObj['team_isDisabled']"></el-input>
					<div v-else-if="$check_field('get','team')">{{form['team']}}</div>
											</el-form-item>
			</el-col>
								<el-col v-if="user_group === '管理员' || $check_field('get','games_played') || $check_field('add','games_played') || $check_field('set','games_played')" :xs="24" :sm="12" :lg="8" class="el_form_item_warp">
				<el-form-item label="出场次数" prop="games_played">
								<el-input-number id="games_played" v-model.number="form['games_played']"
						v-if="user_group === '管理员' || (form['data_information_id'] && $check_field('set','games_played')) || (!form['data_information_id'] && $check_field('add','games_played'))" :disabled="disabledObj['games_played_isDisabled']"></el-input-number>
					<div v-else-if="$check_field('get','games_played')">{{form['games_played']}}</div>
							</el-form-item>
			</el-col>
								<el-col v-if="user_group === '管理员' || $check_field('get','number_of_first_releases') || $check_field('add','number_of_first_releases') || $check_field('set','number_of_first_releases')" :xs="24" :sm="12" :lg="8" class="el_form_item_warp">
				<el-form-item label="首发次数" prop="number_of_first_releases">
								<el-input-number id="number_of_first_releases" v-model.number="form['number_of_first_releases']"
						v-if="user_group === '管理员' || (form['data_information_id'] && $check_field('set','number_of_first_releases')) || (!form['data_information_id'] && $check_field('add','number_of_first_releases'))" :disabled="disabledObj['number_of_first_releases_isDisabled']"></el-input-number>
					<div v-else-if="$check_field('get','number_of_first_releases')">{{form['number_of_first_releases']}}</div>
							</el-form-item>
			</el-col>
								<el-col v-if="user_group === '管理员' || $check_field('get','time_of_appearance') || $check_field('add','time_of_appearance') || $check_field('set','time_of_appearance')" :xs="24" :sm="12" :lg="8" class="el_form_item_warp">
				<el-form-item label="出场时间" prop="time_of_appearance">
												<el-input id="time_of_appearance" v-model="form['time_of_appearance']" placeholder="请输入出场时间"
							  v-if="user_group === '管理员' || (form['data_information_id'] && $check_field('set','time_of_appearance')) || (!form['data_information_id'] && $check_field('add','time_of_appearance'))" :disabled="disabledObj['time_of_appearance_isDisabled']"></el-input>
					<div v-else-if="$check_field('get','time_of_appearance')">{{form['time_of_appearance']}}</div>
											</el-form-item>
			</el-col>
								<el-col v-if="user_group === '管理员' || $check_field('get','hit_counts') || $check_field('add','hit_counts') || $check_field('set','hit_counts')" :xs="24" :sm="12" :lg="8" class="el_form_item_warp">
				<el-form-item label="命中次数" prop="hit_counts">
								<el-input-number id="hit_counts" v-model.number="form['hit_counts']"
						v-if="user_group === '管理员' || (form['data_information_id'] && $check_field('set','hit_counts')) || (!form['data_information_id'] && $check_field('add','hit_counts'))" :disabled="disabledObj['hit_counts_isDisabled']"></el-input-number>
					<div v-else-if="$check_field('get','hit_counts')">{{form['hit_counts']}}</div>
							</el-form-item>
			</el-col>
								<el-col v-if="user_group === '管理员' || $check_field('get','shooting_frequency') || $check_field('add','shooting_frequency') || $check_field('set','shooting_frequency')" :xs="24" :sm="12" :lg="8" class="el_form_item_warp">
				<el-form-item label="投篮次数" prop="shooting_frequency">
								<el-input-number id="shooting_frequency" v-model.number="form['shooting_frequency']"
						v-if="user_group === '管理员' || (form['data_information_id'] && $check_field('set','shooting_frequency')) || (!form['data_information_id'] && $check_field('add','shooting_frequency'))" :disabled="disabledObj['shooting_frequency_isDisabled']"></el-input-number>
					<div v-else-if="$check_field('get','shooting_frequency')">{{form['shooting_frequency']}}</div>
							</el-form-item>
			</el-col>
								<el-col v-if="user_group === '管理员' || $check_field('get','shooting_percentage') || $check_field('add','shooting_percentage') || $check_field('set','shooting_percentage')" :xs="24" :sm="12" :lg="8" class="el_form_item_warp">
				<el-form-item label="投篮命中率" prop="shooting_percentage">
												<el-input id="shooting_percentage" v-model="form['shooting_percentage']" placeholder="请输入投篮命中率"
							  v-if="user_group === '管理员' || (form['data_information_id'] && $check_field('set','shooting_percentage')) || (!form['data_information_id'] && $check_field('add','shooting_percentage'))" :disabled="disabledObj['shooting_percentage_isDisabled']"></el-input>
					<div v-else-if="$check_field('get','shooting_percentage')">{{form['shooting_percentage']}}</div>
											</el-form-item>
			</el-col>
								<el-col v-if="user_group === '管理员' || $check_field('get','triple_hit_count') || $check_field('add','triple_hit_count') || $check_field('set','triple_hit_count')" :xs="24" :sm="12" :lg="8" class="el_form_item_warp">
				<el-form-item label="三分命中数" prop="triple_hit_count">
								<el-input-number id="triple_hit_count" v-model.number="form['triple_hit_count']"
						v-if="user_group === '管理员' || (form['data_information_id'] && $check_field('set','triple_hit_count')) || (!form['data_information_id'] && $check_field('add','triple_hit_count'))" :disabled="disabledObj['triple_hit_count_isDisabled']"></el-input-number>
					<div v-else-if="$check_field('get','triple_hit_count')">{{form['triple_hit_count']}}</div>
							</el-form-item>
			</el-col>
								<el-col v-if="user_group === '管理员' || $check_field('get','triple_output_count') || $check_field('add','triple_output_count') || $check_field('set','triple_output_count')" :xs="24" :sm="12" :lg="8" class="el_form_item_warp">
				<el-form-item label="三分出手数" prop="triple_output_count">
								<el-input-number id="triple_output_count" v-model.number="form['triple_output_count']"
						v-if="user_group === '管理员' || (form['data_information_id'] && $check_field('set','triple_output_count')) || (!form['data_information_id'] && $check_field('add','triple_output_count'))" :disabled="disabledObj['triple_output_count_isDisabled']"></el-input-number>
					<div v-else-if="$check_field('get','triple_output_count')">{{form['triple_output_count']}}</div>
							</el-form-item>
			</el-col>
								<el-col v-if="user_group === '管理员' || $check_field('get','three_point_hit_rate') || $check_field('add','three_point_hit_rate') || $check_field('set','three_point_hit_rate')" :xs="24" :sm="12" :lg="8" class="el_form_item_warp">
				<el-form-item label="三分命中率" prop="three_point_hit_rate">
												<el-input id="three_point_hit_rate" v-model="form['three_point_hit_rate']" placeholder="请输入三分命中率"
							  v-if="user_group === '管理员' || (form['data_information_id'] && $check_field('set','three_point_hit_rate')) || (!form['data_information_id'] && $check_field('add','three_point_hit_rate'))" :disabled="disabledObj['three_point_hit_rate_isDisabled']"></el-input>
					<div v-else-if="$check_field('get','three_point_hit_rate')">{{form['three_point_hit_rate']}}</div>
											</el-form-item>
			</el-col>
								<el-col v-if="user_group === '管理员' || $check_field('get','two_point_hit_count') || $check_field('add','two_point_hit_count') || $check_field('set','two_point_hit_count')" :xs="24" :sm="12" :lg="8" class="el_form_item_warp">
				<el-form-item label="两分命中数" prop="two_point_hit_count">
								<el-input-number id="two_point_hit_count" v-model.number="form['two_point_hit_count']"
						v-if="user_group === '管理员' || (form['data_information_id'] && $check_field('set','two_point_hit_count')) || (!form['data_information_id'] && $check_field('add','two_point_hit_count'))" :disabled="disabledObj['two_point_hit_count_isDisabled']"></el-input-number>
					<div v-else-if="$check_field('get','two_point_hit_count')">{{form['two_point_hit_count']}}</div>
							</el-form-item>
			</el-col>
								<el-col v-if="user_group === '管理员' || $check_field('get','two_split_hand_count') || $check_field('add','two_split_hand_count') || $check_field('set','two_split_hand_count')" :xs="24" :sm="12" :lg="8" class="el_form_item_warp">
				<el-form-item label="两分出手数" prop="two_split_hand_count">
								<el-input-number id="two_split_hand_count" v-model.number="form['two_split_hand_count']"
						v-if="user_group === '管理员' || (form['data_information_id'] && $check_field('set','two_split_hand_count')) || (!form['data_information_id'] && $check_field('add','two_split_hand_count'))" :disabled="disabledObj['two_split_hand_count_isDisabled']"></el-input-number>
					<div v-else-if="$check_field('get','two_split_hand_count')">{{form['two_split_hand_count']}}</div>
							</el-form-item>
			</el-col>
								<el-col v-if="user_group === '管理员' || $check_field('get','two_point_hit_rate') || $check_field('add','two_point_hit_rate') || $check_field('set','two_point_hit_rate')" :xs="24" :sm="12" :lg="8" class="el_form_item_warp">
				<el-form-item label="两分命中率" prop="two_point_hit_rate">
												<el-input id="two_point_hit_rate" v-model="form['two_point_hit_rate']" placeholder="请输入两分命中率"
							  v-if="user_group === '管理员' || (form['data_information_id'] && $check_field('set','two_point_hit_rate')) || (!form['data_information_id'] && $check_field('add','two_point_hit_rate'))" :disabled="disabledObj['two_point_hit_rate_isDisabled']"></el-input>
					<div v-else-if="$check_field('get','two_point_hit_rate')">{{form['two_point_hit_rate']}}</div>
											</el-form-item>
			</el-col>
								<el-col v-if="user_group === '管理员' || $check_field('get','effective_hit_rate') || $check_field('add','effective_hit_rate') || $check_field('set','effective_hit_rate')" :xs="24" :sm="12" :lg="8" class="el_form_item_warp">
				<el-form-item label="有效命中率" prop="effective_hit_rate">
												<el-input id="effective_hit_rate" v-model="form['effective_hit_rate']" placeholder="请输入有效命中率"
							  v-if="user_group === '管理员' || (form['data_information_id'] && $check_field('set','effective_hit_rate')) || (!form['data_information_id'] && $check_field('add','effective_hit_rate'))" :disabled="disabledObj['effective_hit_rate_isDisabled']"></el-input>
					<div v-else-if="$check_field('get','effective_hit_rate')">{{form['effective_hit_rate']}}</div>
											</el-form-item>
			</el-col>
								<el-col v-if="user_group === '管理员' || $check_field('get','free_throws_made') || $check_field('add','free_throws_made') || $check_field('set','free_throws_made')" :xs="24" :sm="12" :lg="8" class="el_form_item_warp">
				<el-form-item label="罚球命中数" prop="free_throws_made">
								<el-input-number id="free_throws_made" v-model.number="form['free_throws_made']"
						v-if="user_group === '管理员' || (form['data_information_id'] && $check_field('set','free_throws_made')) || (!form['data_information_id'] && $check_field('add','free_throws_made'))" :disabled="disabledObj['free_throws_made_isDisabled']"></el-input-number>
					<div v-else-if="$check_field('get','free_throws_made')">{{form['free_throws_made']}}</div>
							</el-form-item>
			</el-col>
								<el-col v-if="user_group === '管理员' || $check_field('get','free_throw_shots') || $check_field('add','free_throw_shots') || $check_field('set','free_throw_shots')" :xs="24" :sm="12" :lg="8" class="el_form_item_warp">
				<el-form-item label="罚球出手数" prop="free_throw_shots">
								<el-input-number id="free_throw_shots" v-model.number="form['free_throw_shots']"
						v-if="user_group === '管理员' || (form['data_information_id'] && $check_field('set','free_throw_shots')) || (!form['data_information_id'] && $check_field('add','free_throw_shots'))" :disabled="disabledObj['free_throw_shots_isDisabled']"></el-input-number>
					<div v-else-if="$check_field('get','free_throw_shots')">{{form['free_throw_shots']}}</div>
							</el-form-item>
			</el-col>
								<el-col v-if="user_group === '管理员' || $check_field('get','free_throw_percentage') || $check_field('add','free_throw_percentage') || $check_field('set','free_throw_percentage')" :xs="24" :sm="12" :lg="8" class="el_form_item_warp">
				<el-form-item label="罚球命中率" prop="free_throw_percentage">
												<el-input id="free_throw_percentage" v-model="form['free_throw_percentage']" placeholder="请输入罚球命中率"
							  v-if="user_group === '管理员' || (form['data_information_id'] && $check_field('set','free_throw_percentage')) || (!form['data_information_id'] && $check_field('add','free_throw_percentage'))" :disabled="disabledObj['free_throw_percentage_isDisabled']"></el-input>
					<div v-else-if="$check_field('get','free_throw_percentage')">{{form['free_throw_percentage']}}</div>
											</el-form-item>
			</el-col>
								<el-col v-if="user_group === '管理员' || $check_field('get','front_court_rebounds') || $check_field('add','front_court_rebounds') || $check_field('set','front_court_rebounds')" :xs="24" :sm="12" :lg="8" class="el_form_item_warp">
				<el-form-item label="前场篮板数" prop="front_court_rebounds">
								<el-input-number id="front_court_rebounds" v-model.number="form['front_court_rebounds']"
						v-if="user_group === '管理员' || (form['data_information_id'] && $check_field('set','front_court_rebounds')) || (!form['data_information_id'] && $check_field('add','front_court_rebounds'))" :disabled="disabledObj['front_court_rebounds_isDisabled']"></el-input-number>
					<div v-else-if="$check_field('get','front_court_rebounds')">{{form['front_court_rebounds']}}</div>
							</el-form-item>
			</el-col>
								<el-col v-if="user_group === '管理员' || $check_field('get','backcourt_rebounds') || $check_field('add','backcourt_rebounds') || $check_field('set','backcourt_rebounds')" :xs="24" :sm="12" :lg="8" class="el_form_item_warp">
				<el-form-item label="后场篮板数" prop="backcourt_rebounds">
								<el-input-number id="backcourt_rebounds" v-model.number="form['backcourt_rebounds']"
						v-if="user_group === '管理员' || (form['data_information_id'] && $check_field('set','backcourt_rebounds')) || (!form['data_information_id'] && $check_field('add','backcourt_rebounds'))" :disabled="disabledObj['backcourt_rebounds_isDisabled']"></el-input-number>
					<div v-else-if="$check_field('get','backcourt_rebounds')">{{form['backcourt_rebounds']}}</div>
							</el-form-item>
			</el-col>
								<el-col v-if="user_group === '管理员' || $check_field('get','total_number_of_rebounds') || $check_field('add','total_number_of_rebounds') || $check_field('set','total_number_of_rebounds')" :xs="24" :sm="12" :lg="8" class="el_form_item_warp">
				<el-form-item label="篮板总数" prop="total_number_of_rebounds">
								<el-input-number id="total_number_of_rebounds" v-model.number="form['total_number_of_rebounds']"
						v-if="user_group === '管理员' || (form['data_information_id'] && $check_field('set','total_number_of_rebounds')) || (!form['data_information_id'] && $check_field('add','total_number_of_rebounds'))" :disabled="disabledObj['total_number_of_rebounds_isDisabled']"></el-input-number>
					<div v-else-if="$check_field('get','total_number_of_rebounds')">{{form['total_number_of_rebounds']}}</div>
							</el-form-item>
			</el-col>
								<el-col v-if="user_group === '管理员' || $check_field('get','number_of_assists') || $check_field('add','number_of_assists') || $check_field('set','number_of_assists')" :xs="24" :sm="12" :lg="8" class="el_form_item_warp">
				<el-form-item label="助攻次数" prop="number_of_assists">
								<el-input-number id="number_of_assists" v-model.number="form['number_of_assists']"
						v-if="user_group === '管理员' || (form['data_information_id'] && $check_field('set','number_of_assists')) || (!form['data_information_id'] && $check_field('add','number_of_assists'))" :disabled="disabledObj['number_of_assists_isDisabled']"></el-input-number>
					<div v-else-if="$check_field('get','number_of_assists')">{{form['number_of_assists']}}</div>
							</el-form-item>
			</el-col>
								<el-col v-if="user_group === '管理员' || $check_field('get','number_of_steals') || $check_field('add','number_of_steals') || $check_field('set','number_of_steals')" :xs="24" :sm="12" :lg="8" class="el_form_item_warp">
				<el-form-item label="抢断次数" prop="number_of_steals">
								<el-input-number id="number_of_steals" v-model.number="form['number_of_steals']"
						v-if="user_group === '管理员' || (form['data_information_id'] && $check_field('set','number_of_steals')) || (!form['data_information_id'] && $check_field('add','number_of_steals'))" :disabled="disabledObj['number_of_steals_isDisabled']"></el-input-number>
					<div v-else-if="$check_field('get','number_of_steals')">{{form['number_of_steals']}}</div>
							</el-form-item>
			</el-col>
								<el-col v-if="user_group === '管理员' || $check_field('get','blocked_shots') || $check_field('add','blocked_shots') || $check_field('set','blocked_shots')" :xs="24" :sm="12" :lg="8" class="el_form_item_warp">
				<el-form-item label="盖帽次数" prop="blocked_shots">
								<el-input-number id="blocked_shots" v-model.number="form['blocked_shots']"
						v-if="user_group === '管理员' || (form['data_information_id'] && $check_field('set','blocked_shots')) || (!form['data_information_id'] && $check_field('add','blocked_shots'))" :disabled="disabledObj['blocked_shots_isDisabled']"></el-input-number>
					<div v-else-if="$check_field('get','blocked_shots')">{{form['blocked_shots']}}</div>
							</el-form-item>
			</el-col>
								<el-col v-if="user_group === '管理员' || $check_field('get','number_of_errors') || $check_field('add','number_of_errors') || $check_field('set','number_of_errors')" :xs="24" :sm="12" :lg="8" class="el_form_item_warp">
				<el-form-item label="失误次数" prop="number_of_errors">
								<el-input-number id="number_of_errors" v-model.number="form['number_of_errors']"
						v-if="user_group === '管理员' || (form['data_information_id'] && $check_field('set','number_of_errors')) || (!form['data_information_id'] && $check_field('add','number_of_errors'))" :disabled="disabledObj['number_of_errors_isDisabled']"></el-input-number>
					<div v-else-if="$check_field('get','number_of_errors')">{{form['number_of_errors']}}</div>
							</el-form-item>
			</el-col>
								<el-col v-if="user_group === '管理员' || $check_field('get','number_of_fouls_committed') || $check_field('add','number_of_fouls_committed') || $check_field('set','number_of_fouls_committed')" :xs="24" :sm="12" :lg="8" class="el_form_item_warp">
				<el-form-item label="犯规次数" prop="number_of_fouls_committed">
								<el-input-number id="number_of_fouls_committed" v-model.number="form['number_of_fouls_committed']"
						v-if="user_group === '管理员' || (form['data_information_id'] && $check_field('set','number_of_fouls_committed')) || (!form['data_information_id'] && $check_field('add','number_of_fouls_committed'))" :disabled="disabledObj['number_of_fouls_committed_isDisabled']"></el-input-number>
					<div v-else-if="$check_field('get','number_of_fouls_committed')">{{form['number_of_fouls_committed']}}</div>
							</el-form-item>
			</el-col>
								<el-col v-if="user_group === '管理员' || $check_field('get','total_score') || $check_field('add','total_score') || $check_field('set','total_score')" :xs="24" :sm="12" :lg="8" class="el_form_item_warp">
				<el-form-item label="总得分" prop="total_score">
								<el-input-number id="total_score" v-model.number="form['total_score']"
						v-if="user_group === '管理员' || (form['data_information_id'] && $check_field('set','total_score')) || (!form['data_information_id'] && $check_field('add','total_score'))" :disabled="disabledObj['total_score_isDisabled']"></el-input-number>
					<div v-else-if="$check_field('get','total_score')">{{form['total_score']}}</div>
							</el-form-item>
			</el-col>
					
	
	
	
	
	
	
		</el-row>
			<el-col :xs="24" :sm="12" :lg="8" class="el_form_btn_warp">
				<el-form-item v-if="$check_action('/data_information/view','set') || $check_action('/data_information/view','add') || $check_option('/data_information/table','examine')">
					<el-button type="primary" @click="submit()">提交</el-button>
					<el-button @click="cancel()">取消</el-button>
				</el-form-item>
				<el-form-item v-else>
					<el-button @click="cancel()">返回</el-button>
				</el-form-item>
			</el-col>

		</el-form>
	</el-main>
</template>

<script>
	import mixin from "@/mixins/page.js";

	export default {
		mixins: [mixin],
		data() {
			return {
				field: "data_information_id",
				url_add: "~/api/data_information/add?",
				url_set: "~/api/data_information/set?",
				url_get_obj: "~/api/data_information/get_obj?",
				url_upload: "~/api/data_information/upload?",

				query: {
					"data_information_id": 0,
				},

				form: {
								"player_name":  '', // 球员姓名
										"player_position":  '', // 球员位置
										"player_age":  '', // 球员年龄
										"team":  '', // 所在球队
										"games_played":  0, // 出场次数
										"number_of_first_releases":  0, // 首发次数
										"time_of_appearance":  '', // 出场时间
										"hit_counts":  0, // 命中次数
										"shooting_frequency":  0, // 投篮次数
										"shooting_percentage":  '', // 投篮命中率
										"triple_hit_count":  0, // 三分命中数
										"triple_output_count":  0, // 三分出手数
										"three_point_hit_rate":  '', // 三分命中率
										"two_point_hit_count":  0, // 两分命中数
										"two_split_hand_count":  0, // 两分出手数
										"two_point_hit_rate":  '', // 两分命中率
										"effective_hit_rate":  '', // 有效命中率
										"free_throws_made":  0, // 罚球命中数
										"free_throw_shots":  0, // 罚球出手数
										"free_throw_percentage":  '', // 罚球命中率
										"front_court_rebounds":  0, // 前场篮板数
										"backcourt_rebounds":  0, // 后场篮板数
										"total_number_of_rebounds":  0, // 篮板总数
										"number_of_assists":  0, // 助攻次数
										"number_of_steals":  0, // 抢断次数
										"blocked_shots":  0, // 盖帽次数
										"number_of_errors":  0, // 失误次数
										"number_of_fouls_committed":  0, // 犯规次数
										"total_score":  0, // 总得分
											"data_information_id": 0, // ID
						
				},
				disabledObj:{
								"player_name_isDisabled": false,
										"player_position_isDisabled": false,
										"player_age_isDisabled": false,
										"team_isDisabled": false,
					          			"games_played_isDisabled": false,
					          			"number_of_first_releases_isDisabled": false,
										"time_of_appearance_isDisabled": false,
					          			"hit_counts_isDisabled": false,
					          			"shooting_frequency_isDisabled": false,
										"shooting_percentage_isDisabled": false,
					          			"triple_hit_count_isDisabled": false,
					          			"triple_output_count_isDisabled": false,
										"three_point_hit_rate_isDisabled": false,
					          			"two_point_hit_count_isDisabled": false,
					          			"two_split_hand_count_isDisabled": false,
										"two_point_hit_rate_isDisabled": false,
										"effective_hit_rate_isDisabled": false,
					          			"free_throws_made_isDisabled": false,
					          			"free_throw_shots_isDisabled": false,
										"free_throw_percentage_isDisabled": false,
					          			"front_court_rebounds_isDisabled": false,
					          			"backcourt_rebounds_isDisabled": false,
					          			"total_number_of_rebounds_isDisabled": false,
					          			"number_of_assists_isDisabled": false,
					          			"number_of_steals_isDisabled": false,
					          			"blocked_shots_isDisabled": false,
					          			"number_of_errors_isDisabled": false,
					          			"number_of_fouls_committed_isDisabled": false,
					          			"total_score_isDisabled": false,
										},

	
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
	
			}
		},
		methods: {


	
	
			
	
			
	
			
	
			
	
			
	
			
	
			
	
			
	
			
	
			
	
			
	
			
	
			
	
			
	
			
	
			
	
			
	
			
	
			
	
			
	
			
	
			
	
			
	
			
	
			
	
			
	
			
	
			
	
		
			/**
			 * 获取对象之前
			 * @param {Object} param
			 */
			get_obj_before(param) {
				var form = "";
																															
				if(this.form && form){
					Object.keys(this.form).forEach(key => {
						Object.keys(form).forEach(dbKey => {
							// if(dbKey === "charging_standard"){
							// 	this.form['charging_rules'] = form[dbKey];
							// 	this.disabledObj['charging_rules_isDisabled'] = true;
							// };
							if(key === dbKey){
								this.disabledObj[key+'_isDisabled'] = true;
							}
						})
					})
				}
																																																														$.db.del("form");

				return param;
			},

			/**
			 * 获取对象之后
			 * @param {Object} json
			 * @param {Object} func
			 */
			get_obj_after(json, func){
																																																																																																																				

			},

			/**
			 * 提交前验证事件
			 * @param {Object} 请求参数
			 * @return {String} 验证成功返回null, 失败返回错误提示
			 */
			submit_check(param) {
																																																																																																																																																																																																																																																																											return null;
			},

			is_view(){
				var bl = this.user_group == "管理员";

				if(!bl){
					bl = this.$check_action('/data_information/table','add');
					console.log(bl ? "你有表格添加权限视作有添加权限" : "你没有表格添加权限");
				}
				if(!bl){
					bl = this.$check_action('/data_information/table','set');
					console.log(bl ? "你有表格添加权限视作有修改权限" : "你没有表格修改权限");
				}
				if(!bl){
					bl = this.$check_action('/data_information/view','add');
					console.log(bl ? "你有视图添加权限视作有添加权限" : "你没有视图添加权限");
				}
				if(!bl){
					bl = this.$check_action('/data_information/view','set');
					console.log(bl ? "你有视图修改权限视作有修改权限" : "你没有视图修改权限");
				}
				if(!bl){
					bl = this.$check_action('/data_information/view','get');
					console.log(bl ? "你有视图查询权限视作有查询权限" : "你没有视图查询权限");
				}

				console.log(bl ? "具有当前页面的查看权，请注意这不代表你有字段的查看权" : "无权查看当前页，请注意即便有字段查询权限没有页面查询权限也不行");

				return bl;
			},
			/**
			 * 上传文件
			 * @param {Object} param
			 */
			uploadimg(param) {
				this.uploadFile(param.file, "avatar");
			},

		},
		created() {
																																																												},
	}
</script>

<style>
	.avatar-uploader .el-upload {
		border: 1px dashed #d9d9d9;
		border-radius: 6px;
		cursor: pointer;
		position: relative;
		overflow: hidden;
	}

	.avatar-uploader .el-upload:hover {
		border-color: #409EFF;
	}

	.avatar-uploader-icon {
		font-size: 28px;
		color: #8c939d;
		width: 178px;
		height: 178px;
		line-height: 178px;
		text-align: center;
	}

	.avatar {
		width: 178px;
		height: 178px;
		display: block;
	}




</style>
